#include "widget.h"
#include "ui_widget.h"
#include <QIcon>


Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    // 设置图标
    //QIcon icon(R"(F:\QTcodelibrary\QWidget_7\cookie.jpg)");
    QIcon icon(R"(:/cookie.jpg)");
    this->setWindowIcon(icon);
}

Widget::~Widget()
{
    delete ui;
}

